package com.work.dao;

import com.work.pojo.Order;
import com.work.pojo.OrderDetail;
import com.work.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderDao {
    List<Order> getAllOrder();

    User getUser(Integer uid);

    void sendOrder(String oid);

    List<Order> searchOrder(@Param( "uid" )int id, @Param( "status" ) int Status);

    User getUserByname(String username);

    List<Order> getOrderById(Integer uid);

    void addSingleOrder(Order order);

    void insertOrderDetail(OrderDetail orderDetail);

    Order getOrderByoId(String valueOf);

    List<OrderDetail> listOrderDetailBy(String oid);

    void changeStatus(String oid);
}
